package com.foreknow.view;

import com.foreknow.dao.impl.UserDaoImpl;
import com.foreknow.model.User;
import com.foreknow.service.UserService;
import com.foreknow.service.impl.UserServiceImpl;

public class UserWindow {
    public static void main(String[] args) {
        UserServiceImpl service = new UserServiceImpl();
        service.setUserDao(new UserDaoImpl());
        User user = service.isValidata("admin","123456");
        if(user != null) {
            System.out.println("success......");
        }else {
            System.out.println("用户名或密码错误");
        }
    }
}
